package com.nms.dao;

import java.io.Serializable;
import java.util.Collection;

public interface BaseDao<T> {

	/**
	 * 通过主键查询记录
	 * query the record by primary key
	 * @param id
	 * @return
	 */
	T query(Serializable id);
	/**
	 * 通过执行HQL语句查询记录
	 * query the records by execute a HQL statement
	 * @param queryString
	 * @return
	 */
	Collection<T> query(String queryString);
	Collection<T> findAll();

}
